<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements.  See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF licenses this file to You under the Apache License, Version 2.0
  ~ (the "License"); you may not use this file except in compliance with
  ~ the License.  You may obtain a copy of the License at
  ~
  ~    http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  ~
  -->

<sp-basic-nav-tabs [spNavigationItems]="tabs" [activeLink]="'security'">
    <div fxLayout="column" class="page-container-padding">
        <div fxFlex="100" fxLayout="column" fxLayoutAlign="start start">
            <sp-split-section
                title="User Accounts"
                subtitle="Add and edit user accounts"
            >
                <div class="subsection-title">Existing user accounts</div>
                <sp-security-user-config></sp-security-user-config>
            </sp-split-section>
        </div>
        <mat-divider></mat-divider>
        <div fxFlex="100" fxLayout="column" fxLayoutAlign="start start">
            <sp-split-section
                title="Service Accounts"
                subtitle="Add and edit service accounts"
            >
                <div class="subsection-title">Existing service accounts</div>
                <sp-security-service-config></sp-security-service-config>
            </sp-split-section>
        </div>
        <mat-divider></mat-divider>
        <div fxFlex="100" fxLayout="column" fxLayoutAlign="start start">
            <sp-split-section title="Groups" subtitle="Manage user groups">
                <div class="subsection-title">Existing groups</div>
                <sp-security-user-group-config></sp-security-user-group-config>
            </sp-split-section>
        </div>
        <div fxFlex="100" fxLayout="column" fxLayoutAlign="start start">
            <sp-split-section title="Roles" subtitle="Manage roles">
                <div class="subsection-title">Existing roles</div>
                <sp-security-role-config></sp-security-role-config>
            </sp-split-section>
        </div>
        <mat-divider></mat-divider>
        <div fxFlex="100" fxLayout="column" fxLayoutAlign="start start">
            <sp-split-section
                title="Authentication"
                subtitle="Auth & token settings"
            >
                <div class="subsection-title">JWT Signature</div>
                <sp-authentication-configuration></sp-authentication-configuration>
            </sp-split-section>
        </div>
    </div>
</sp-basic-nav-tabs>
